using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class WaveUI : MonoBehaviour
{
    [SerializeField] private Image bg;
    [SerializeField] private Text waveText;

    public void SetWave(string name)
    {
        bg.gameObject.SetActive(true);
        waveText.gameObject.SetActive(true);
        waveText.text=$"{name}";
        Invoke("Cloce",2f);
    }
    public void Cloce()
    {
        bg.gameObject.SetActive(false); 
        waveText.gameObject.SetActive(false);

    }
}
